package com.goulin.sprmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.goulin.sprmvc.domain.DemoObj;

@Controller
public class ConverterController {
	@RequestMapping(value="/converter",produces={"application/x-goulin"})
	public @ResponseBody DemoObj converter(@RequestBody DemoObj obj){
		return obj;
	}
}
